/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication30;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.io.*;
class NClass {
public static void main (String[] args) throws AWTException {
    Runtime rs=Runtime.getRuntime();
    try {
        rs.exec("notepad");
    }
catch (IOException e) {
    System.out.println(e);
}
Robot robot=new Robot ();
robot.keyPress(KeyEvent.VK_B);
robot.delay(100);
robot.keyPress(KeyEvent.VK_E);
robot.delay(100);
robot.keyPress(KeyEvent.VK_N);
robot.delay(100);
robot.keyPress(KeyEvent.VK_V);
robot.delay(100);
robot.keyPress(KeyEvent.VK_E);
robot.delay(100);
robot.keyPress(KeyEvent.VK_N);
robot.delay(100);
robot.keyPress(KeyEvent.VK_U);
robot.delay(100);
robot.keyPress(KeyEvent.VK_T);
robot.delay(100);
robot.keyPress(KeyEvent.VK_O);
robot.delay(2000);
robot.mouseMove(700,15);
robot.delay(2000);
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
robot.delay(2000);
robot.mouseMove(500,425);
robot.delay(2000);
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
}
}